package com.guigu.qingcheng.service;

import com.qingcheng.pojo.user.Address;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@Component
@FeignClient("service-user")
public interface AddressFegin {

    @GetMapping("/address/selectByUserName")
    List<Address> findByUsername(@RequestParam String username);
}
